package com.johannting.demo.job.jdbc;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.SimpleDateFormat;
import java.util.Date;

public class JDBCJob implements Job {
    private static final Logger log= LoggerFactory.getLogger(JDBCJob.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("JDBC Job 开始..............");
        log.info("你好 Quartz "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
        log.info("JDBC Job 结束..............");
    }
}
